﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Caipin_Manage.aspx.cs"
    Inherits="Catering.Catering_Page.Caipin.Caipin_Manage" %>

<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/Dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>菜品管理</title>
    <link rel="stylesheet" type="text/css" href="../../../Style/head.css" />
    <link rel="stylesheet" type="text/css" href="../../../Style/center.css" />
    <link href="../../../Style/StyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="../../../Style/jquery.treeview.css" rel="stylesheet" type="text/css" />
    <link href="../../../Style/tinybox_style.css" rel="stylesheet" type="text/css" />
    <link href="../../Style/zhezhao.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.cookie.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.treeview.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.treeview.edit.js" type="text/javascript"></script>
    <script src="../../Scripts/tinybox.js" type="text/javascript"></script>
    <script src="../../../Style/xxk.js" type="text/javascript"></script>
    <script src="../../Scripts/zhezhao.js" type="text/javascript"></script>
    <style type="text/css">
        .Create_Recipe
        {
            margin-top: 0;
        }
        .Create_Recipe
        {
            border: 1px solid #159aec;
            border-top: none;
            width: 998px;
        }
        .soso_lt
        {
            padding: 5px 0;
        }
        .soso_lt a
        {
            margin-left: 3px;
        }
    </style>
    <!--删除菜品信息---->
    <script language="javascript" type="text/javascript">
        function Del_DishInfo(DishInfo) {
            var test = $("#Txt_jinghanliang" + DishInfo).html();
            if (test != null) {
                $("#Txt_jinghanliang" + DishInfo).parent().parent().remove();

                $.ajax({
                    type: "Post",
                    url: "../../PostDate.aspx/DishInfo_Operaction",
                    data: "{'Del_DishInfo_ID':'" + DishInfo + "'}",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (data) {

                    }
                });

            }

        }
 
    </script>
    <!----搜索菜品------>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {

            $("#But_Dish_Seach").click(function () {
                // $("#Dl_div").children().css("color", "black");
                $("#Dl_div table tr td a").css("color", "black");
                if ($("#Txt_Dish_Seach").val() != "") {
                    $("#Dl_div  a:contains('" + $("#Txt_Dish_Seach").val() + "')").css("color", "red").parentsUntil("#Dl_div").filter("div").prev("table").find("a").css("color", "red");

                }
            });
        });
    
    </script>
    <!-----搜索原料------>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {

            $("#but_Raw_seach").click(function () {

                $("#Dl_div table tr").css("color", "black");
                if ($("#Txt_seach_Raw").val() != "") {
                    $("#Div_RawMaterial a:contains('" + $("#Txt_seach_Raw").val() + "')").css("color", "red").parentsUntil("#Div_RawMaterial").filter("div").prev("table").find("a").css("color", "red");


                }

            });
        });
    
    </script>
    <!------加载-------->
    <script language="javascript" type="text/javascript">

        $(document).ready(
        function () {
            alert
            $.ajax({
                type: "Post",
                url: "../../PostDate.aspx/LoadTreeView",
                data: "{'strTreeView':'Librarydata '}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {

                    //   $("#RawMaterial").append(data.d[0]); 

                }
            });

        });
   
    </script>
    <!-----加行-------->
    <script language="javascript" type="text/javascript">
        var Xuhao = 0;

        $(document).ready(
        function () {
            Xuhao = Xuhao + 1;
            var intId = Math.floor(Math.random() * 1000 + 1);

            $("#RawMaterial a").click(function () {


                var RawName = $(this)[0].innerText;
                var lblvalue = $("#lbl_reliang").html() + "," +
                         $("#lbl_danbaizhi").html() + "," +
                 $("#lbl_zhifang").html() + "," +
                 $("#lbl_tanshuihuahewu").html() + "," +
                 $("#lbl_shanshixianwei").html() + "," +

                 $("#lbl_weishengsuA").html() + "," +
                 $("#lbl_weishengsuB1").html() + "," +
                 $("#lbl_weishengsuB2").html() + "," +
                 $("#lbl_weishengsuC").html() + "," +
                 $("#lbl_weishengsuE").html() + "," +
                 $("#lbl_shihuangchundangliang").html() + "," +
                 $("#lbl_nikesuan").html() + "," +
                 $("#lbl_huluobosu").html() + "," +

                 $("#lbl_gai").html() + "," +
                 $("#lbl_ling").html() + "," +
                 $("#lbl_jia").html() + "," +
                 $("#lbl_na").html() + "," +
                 $("#lbl_mei").html() + "," +
                 $("#lbl_tie").html() + "," +
                 $("#lbl_xin").html() + "," +
                 $("#lbl_xi").html() + "," +
                 $("#lbl_tong").html() + "," +
                 $("#lbl_men").html() + "," +
                 $("#lbl_dian").html();

                if (RawName != "") {

                    $.ajax({
                        type: "Post",
                        url: "../../PostDate.aspx/Raw_Row_New",
                        data: "{'RawName':'" + RawName + "','lblvalue':'" + lblvalue + "'}",
                        contentType: "application/json; charset=utf-8",
                        dataType: "json",
                        success: function (data) {

                            var newrow = "<tr>  " +
                                        "    <td class='xh_td'>" + intId + " </td>" +
                                        "    <td id='RawName'>" + data.d[1] + "</td>" +
                                        "    <td>" + data.d[2] + "</td>" +
                                        "    <td id='leibie'> <input type='text'  value='100' ID='Txt_jinghanliang" + intId + "' style='width:50px' onpropertychange='Txt_Number_Chanage(" + intId + ")'/></td>" +
                                        "     <td>" + data.d[3] + "</td>" +
                                        "     <td align='center'><a href='#'><img src='../../Images/trash.gif' /></a></td>" +
                                        "    </tr>";
                            $("#New_Raw_Row").appendTo(newrow);

                            $("#lbl_reliang").html(data.d[4]);
                            $("#lbl_danbaizhi").html(data.d[5]);
                            $("#lbl_zhifang").html(data.d[6]);
                            $("#lbl_tanshuihuahewu").html(data.d[7]);
                            $("#lbl_shanshixianwei").html(data.d[8]);

                            $("#lbl_weishengsuA").html(data.d[9]);
                            $("#lbl_weishengsuB1").html(data.d[10]);
                            $("#lbl_weishengsuB2").html(data.d[11]);
                            $("#lbl_weishengsuC").html(data.d[12]);
                            $("#lbl_weishengsuE").html(data.d[13]);
                            $("#lbl_shihuangchundangliang").html(data.d[14]);
                            $("#lbl_nikesuan").html(data.d[15]);
                            $("#lbl_huluobosu").html(data.d[16]);

                            $("#lbl_gai").html(data.d[17]);
                            $("#lbl_ling").html(data.d[18]);
                            $("#lbl_jia").html(data.d[19]);
                            $("#lbl_na").html(data.d[20]);
                            $("#lbl_mei").html(data.d[21]);
                            $("#lbl_tie").html(data.d[22]);
                            $("#lbl_xin").html(data.d[23]);
                            $("#lbl_xi").html(data.d[24]);
                            $("#lbl_tong").html(data.d[25]);
                            $("#lbl_men").html(data.d[26]);
                            $("#lbl_dian").html(data.d[27]);
                        }
                    });
                }
            });


        });

       
       
    </script>
    <!-----更改数量---->
    <script language="javascript" type="text/javascript">
        function Txt_Number_Chanage(Txt_Number) {

            var test = $(this).find("[id=RawName]").html();
            var Nunmber = $("#Txt_jinghanliang" + Txt_Number).val();
            var RawName = $("#Txt_jinghanliang" + Txt_Number).parent().parent().find("[id=RawName]").html();
            var lblvalue = $("#lbl_reliang").html() + "," +
                         $("#lbl_danbaizhi").html() + "," +
                 $("#lbl_zhifang").html() + "," +
                 $("#lbl_tanshuihuahewu").html() + "," +
                 $("#lbl_shanshixianwei").html() + "," +

                 $("#lbl_weishengsuA").html() + "," +
                 $("#lbl_weishengsuB1").html() + "," +
                 $("#lbl_weishengsuB2").html() + "," +
                 $("#lbl_weishengsuC").html() + "," +
                 $("#lbl_weishengsuE").html() + "," +
                 $("#lbl_shihuangchundangliang").html() + "," +
                 $("#lbl_nikesuan").html() + "," +
                 $("#lbl_huluobosu").html() + "," +

                 $("#lbl_gai").html() + "," +
                 $("#lbl_ling").html() + "," +
                 $("#lbl_jia").html() + "," +
                 $("#lbl_na").html() + "," +
                 $("#lbl_mei").html() + "," +
                 $("#lbl_tie").html() + "," +
                 $("#lbl_xin").html() + "," +
                 $("#lbl_xi").html() + "," +
                 $("#lbl_tong").html() + "," +
                 $("#lbl_men").html() + "," +
                 $("#lbl_dian").html();
            $.ajax({
                type: "Post",
                url: "../../PostDate.aspx/RawNutrient",
                data: "{'RawNumber':'" + RawName + "," + Nunmber + "," + Txt_Number + "," + lblvalue + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {

                    $("#lbl_reliang").html(data.d[0]);

                    $("#lbl_danbaizhi").html(data.d[1]);
                    $("#lbl_zhifang").html(data.d[2]);
                    $("#lbl_tanshuihuahewu").html(data.d[3]);
                    $("#lbl_shanshixianwei").html(data.d[4]);

                    $("#lbl_weishengsuA").html(data.d[5]);
                    $("#lbl_weishengsuB1").html(data.d[6]);
                    $("#lbl_weishengsuB2").html(data.d[7]);
                    $("#lbl_weishengsuC").html(data.d[8]);
                    $("#lbl_weishengsuE").html(data.d[9]);
                    $("#lbl_shihuangchundangliang").html(data.d[10]);
                    $("#lbl_nikesuan").html(data.d[11]);
                    $("#lbl_huluobosu").html(data.d[12]);

                    $("#lbl_gai").html(data.d[13]);
                    $("#lbl_ling").html(data.d[14]);
                    $("#lbl_jia").html(data.d[15]);
                    $("#lbl_na").html(data.d[16]);
                    $("#lbl_mei").html(data.d[17]);
                    $("#lbl_tie").html(data.d[18]);
                    $("#lbl_xin").html(data.d[19]);
                    $("#lbl_xi").html(data.d[20]);
                    $("#lbl_tong").html(data.d[21]);
                    $("#lbl_men").html(data.d[22]);
                    $("#lbl_dian").html(data.d[23]);
                }
            });


            // $("#ButSet").click();

        }
    
    </script>
    <!---开关效果-->
    <script language="javascript" type="text/javascript">
        var aHtml = "";
        $(document).ready(function () {

            var a = "<%= zhi %>";

            if (a == "保存") {
                $(".add_new").html(a);
                $("#Dish").css("display", "none");
                $("#RawMaterial").css("display", "block");
            } else if (a == "新增") {

                $(".add_new").html(a);
                $("#Dish").css("display", "block");
                $("#RawMaterial").css("display", "none");

            }
        });
        function aa() {

            if ($("#RawMaterial").css("display") == "none") {

                $(".add_new").html("保存");
                aHtml = $(".add_new").html();
                $("#HiddenField1").val(aHtml);

                $("#Dish").css("display", "none");
                $("#RawMaterial").css("display", "block");
            }
            else {

                $(".add_new").html("新增");
                aHtml = $(".add_new").html();
                $("#HiddenField1").val(aHtml);

                $("#Dish").css("display", "block");
                $("#RawMaterial").css("display", "none");
            }
        }
   
    </script>
    <!------菜谱库---->
    <script language="javascript" type="text/javascript">


        function show_list() {
            TINY.box.show({ html: '<div class=\'boxli\'>' + $("#Div_DataList_Library").html() + '</div>', boxid: 'frameless', animate: true });
        }


        //选择菜品库
        function Library(Librarydata) {

            $.ajax({
                type: "Post",
                url: "../../PostDate.aspx/Library_Select",
                data: "{'Library':'" + Librarydata + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    //  alert(Librarydata);
                }
            });
            TINY.box.hide();
            $("#ButLibrary").click();
        }

    

    </script>
    <!-----删除食物---->
    <script language="javascript" type="text/javascript">
        function Del_Select_Dish() {

            var selectedNodeID = theForm.elements["<%=Tv_Dish.ClientID%>_SelectedNode"].value;
            if (selectedNodeID != "") {
                var selectedNode = document.getElementById(selectedNodeID);
                var value = selectedNode.href.substring(selectedNode.href.indexOf(",") + 3, selectedNode.href.length - 2);
                var text = selectedNode.innerHTML;

                $.ajax({
                    type: "Post",
                    url: "../../PostDate.aspx/Del_Dish_Info",
                    data: "{'Dish_ID':'" + value + "'}",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (data) {
                        //  alert(Librarydata);
                    }
                });
            }
            else {
                alert("没有选择节点。")
            }

            // 也可以使用内置的对象  
            //   var treeViewData = window["<%=Tv_Dish.ClientID%>" + "_Data"];
            //   selectedNodeID = treeViewData.selectedNodeID.value;
            //   alert(selectedNodeID);
            //    return false;
        }
    

    </script>
    <!-----删除原料---->
    <script language="javascript" type="text/javascript">
        function Del_Select_Raw() {

            var selectedNodeID = theForm.elements["<%=Tv_RawMaterial2.ClientID%>_SelectedNode"].value;
            if (selectedNodeID != "") {
                var selectedNode = document.getElementById(selectedNodeID);
                var value = selectedNode.href.substring(selectedNode.href.indexOf(",") + 3, selectedNode.href.length - 2);
                var text = selectedNode.innerHTML;

                $.ajax({
                    type: "Post",
                    url: "../../PostDate.aspx/Del_Raw_Info",
                    data: "{'Raw_ID':'" + value + "'}",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (data) {
                        //  alert(Librarydata);
                    }
                });
            }
            else {
                alert("没有选择节点。")
            }

            // 也可以使用内置的对象  
            //   var treeViewData = window["<%=Tv_Dish.ClientID%>" + "_Data"];
            //   selectedNodeID = treeViewData.selectedNodeID.value;
            //   alert(selectedNodeID);
            //    return false;
        }
    

    </script>
    <!---上传图片----->
    <script type="text/javascript">
        $(document).ready(function () {
            $('.pop_dl>dt>span').click(function () {
                $("#popbg").fadeOut();
                $('.pop_dl').fadeOut();
            });
            $("#btn_show").click(function () {
                showSearch();
            });

            $("#ButOk").click(function () {
                $("#popbg").fadeOut();
                $('.pop_dl').fadeOut();
            });
        });

        function UpPoto_Click() {
            popdiv("#pol_search", "500", "auto", 0.2);
        }

        function popdiv(popdiv, width, height, alpha) {
            var A = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
            var D = 0;
            D = Math.min(document.body.clientHeight, document.documentElement.clientHeight);
            if (D == 0) {
                D = Math.max(document.body.clientHeight, document.documentElement.clientHeight)
            }
            var topheight = (A + (D - 300) / 2) + "px";
            $("#popbg").css({ height: $(document).height(), filter: "alpha(opacity=" + alpha + ")", opacity: alpha })
            $("#popbg").fadeIn();

            $(popdiv).css({ left: (($(document).width()) / 2 - (parseInt(width) / 2)) + "px", top: "500px" });
            $(popdiv).fadeIn();
        }
    </script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('.pop_dl>dt>span').click(function () {
                $("#popbg").fadeOut();
                $('.pop_dl').fadeOut();
            });
            $("#btn_show").click(function () {
                showSearch();
            });

            $("#but_Raw_Up").click(function () {
                $("#popbg").fadeOut();
                $('.pop_dl').fadeOut();
            });
        });

        function Up_Raw_Poto_Click() {
            popdiv("#pol_search", "500", "auto", 0.2);
        }

        function popdiv(popdiv, width, height, alpha) {
            var A = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
            var D = 0;
            D = Math.min(document.body.clientHeight, document.documentElement.clientHeight);
            if (D == 0) {
                D = Math.max(document.body.clientHeight, document.documentElement.clientHeight)
            }
            var topheight = (A + (D - 300) / 2) + "px";
            $("#popbg").css({ height: $(document).height(), filter: "alpha(opacity=" + alpha + ")", opacity: alpha })
            $("#popbg").fadeIn();

            $(popdiv).css({ left: (($(document).width()) / 2 - (parseInt(width) / 2)) + "px", top: "100px" });
            $(popdiv).fadeIn();
        }
    </script>
    <!-----新建-------->
    <script language="javascript" type="text/javascript">
        function ClearPageInput_Dish() {
            $("#ButClear_Dish").click();
        }
        function ClearPageInput_Raw() {
            $("#ButClear_Raw").click();
        }
    </script>
    <!---食物类别---->
    <script language="javascript" type="text/javascript">
        function Clear_Raw_Type(RawID) {

            var test = $("#Raw_Type" + RawID).html();
            if (test == null) {
                $.ajax({
                    type: "Post",
                    url: "../../PostDate.aspx/Raw_Del",
                    data: "{'Raw_Del_Id':'" + RawID + "'}",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (data) {
                        //  alert(Librarydata);
                    }

                });
            } else {

                $("#Raw_Type" + RawID).parent().parent().remove();
            }

        }
        function add_raw_type() {
            //  $("#but_Add_Row").click();

            var Xuhao = 0;
            Xuhao = Xuhao + 1;
            var strId = Math.floor(Math.random() * 1000 + 1);
            $("#raw_types").append(
    "<tr id=\"add_" + strId + "\">" +
    "<td class='xh_td'>" + strId + "</td>" +
    "<td id='leibie'><input type='text' id ='Raw_Type" + strId + "'/></td>" +
    "<td align='center'>" +
    "<a href='#' onclick='select_max_type(\"" + strId + "\")'><img src='../../Images/file.gif'/></a>" +
    "</td>" +
    "<td align='center'>" +
    "<a href='#'onclick='Clear_Raw_Type(" + strId + ")'><img src='../../Images/trash.gif'/></a>" +
    "</td></tr>");
        }

        function select_max_type(date) {
            
            if (date != null) {
                $.ajax({
                    type: "Post",
                    url: "../../PostDate.aspx/Select_Max_Type",
                    data: "{'strMaxtype':'" + date + "'}",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (data) {
                        $("#Myselect").children().remove();
                        $("#Myselect").append(data.d[0]);
                    }
                });

                divshow("divmain", "divup");
            }
        }
        function add_raw_Type_Info() {

            var rawname = "";
            $("#raw_type").each(
    function () {

        if ($(this).html().toString().indexOf("add_") > 0) {
            var temp1 = $(this).find("[id=leibie]").children().val();
            rawname = rawname + temp1 + ",";
        }
    });

            $.ajax({
                type: "Post",
                url: "../../PostDate.aspx/Raw_New",
                data: "{'Raw_New_Name':'" + rawname + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    //  alert(Librarydata);
                }
            });



        }
    </script>
    <!---菜品类别---->
    <script language="javascript" type="text/javascript">

        function Clear_Dish_Type(RawID) {

            var test = $("#Dish_Type" + RawID).html();
            if (test == null) {
                $.ajax({
                    type: "Post",
                    url: "../../PostDate.aspx/Dish_Del",
                    data: "{'Dish_Del_Id':'" + RawID + "'}",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (data) {
                        //  alert(Librarydata);
                    }
                });
            } else {

                $("#Dish_Type" + RawID).parent().parent().remove();
            }
        }
        function add_Dish_type() {
            //  $("#but_Add_Row").click();

            var Xuhao = 0;
            Xuhao = Xuhao + 1;
            var strId = Math.floor(Math.random() * 1000 + 1);
            $("#Dish_Type").append(
    "<tr id=\"add_" + strId + "\">" +
    "<td class='xh_td'>" + strId + "</td>" +
    "<td id='leibie'><input type='text' id ='Dish_Type" + strId + "'/></td>" +
    "<td align='center'>" +
    "<a href='#' onclick='Clear_Dish_Type(" + strId + ")'><img src='../../Images/trash.gif'/></a>" +
    "</td></tr>");
        }
        function add_Dish_Type_Info() {

            var rawname = "";
            $("#Dish_Type").each(
    function () {

        if ($(this).html().toString().indexOf("add_") > 0) {
            var temp1 = $(this).find("[id=leibie]").children().val();
            rawname = rawname + temp1 + ",";
        }
    });

            $.ajax({
                type: "Post",
                url: "../../PostDate.aspx/Dish_New",
                data: "{'Dish_New_Name':'" + rawname + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    //  alert(Librarydata);
                }
            });



        }
    </script>
    <!--菜谱库设置-->
    <script language="javascript" type="text/javascript">
        function select_libery() {
            var RawID = 1;
            var selectoption = "";
            var showrow = "";
            $.ajax({
                type: "Post",
                url: "../../PostDate.aspx/set_libery",
                data: "{'libery':'" + RawID + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    

                    for (var i = 0; i < 7; i++) {
                        selectoption = selectoption + " <option value=\"" + i + "\">" + data.d[i] + "</option>"
                    }

                    showrow = " <tr id=\"Add\">" +
                " <td class=\"xh_td\"> <input type=\"TextBox\"  />  </td>" +
                " <td><input type=\"TextBox\" name=\"canpu\"/></td>" +
                "  <td> <select style=\"width:100px\" name=\"renqun\">" + selectoption + "</select>  </td>" +
                "<td><input type=\"TextBox\" name=\"miaoshu\"/> </td>" +
                " <td align=\"center\">  <a href=\"#\">  <img src=\"../../Images/trash.gif\" /></a> </td>" +
                "</tr>";
                    $("#libery_List").append(showrow);
                }
            });
        }
        function Del_set_Libery(dates) {
          var test = $("#Add").html();
        if (test == null) {
            $.ajax({
                type: "Post",
                url: "../../PostDate.aspx/Del_set_Libery",
                data: "{'Del_set_ID':'" + dates + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    alert(" shanchu ");

                }
            });
        } else {
            $("#add" + RawID).parent().parent().remove();
        }
    }

    function add_set_Libery() {
        var rawname = "";
            $("#libery_List").each(
                function () {

                    if ($(this).html().toString().indexOf("Add") > 0) {
                      rawname=rawname+  $(this).find("[name='canpu']").val() +
                        "," + $(this).find("[name='renqun']").val() +
                        "," + $(this).find("[name='miaoshu']").val()+"|" ;
                    }
                });

                $.ajax({
                    type: "Post",
                    url: "../../PostDate.aspx/Set_Libery_Add",
                    data: "{'Libery_string':'" + rawname + "'}",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (data) {
                        //  alert(Librarydata);
                    }
                });

        }
    </script>
    <!--我的食谱-->
    <script language="javascript" type="text/javascript">
        function Del_set_shipu(dates) {
           
            if (dates != null) {
                $.ajax({
                    type: "Post",
                    url: "../../PostDate.aspx/Del_set_shipu",
                    data: "{'Del_shipu_ID':'" + dates + "'}",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (data) {
                    

                    }
                });
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <!---控件隐藏区--->
    <asp:Button ID="ButLibrary" runat="server" OnClick="ButLibrary_Click" Style="display: none" />
    <asp:Button ID="ButClear_Dish" runat="server" OnClick="ButClear_Dish_Click" Style="display: none" />
    <asp:Button ID="ButClear_Raw" runat="server" OnClick="ButClear_Raw_Click" Style="display: none" />
    <asp:HiddenField ID="HiddenField1" runat="server" />
    <asp:HiddenField ID="RawSet" runat="server" />
    <div class="xxk_button">
        <ul>
            <ul>
                <li id="li2_1" class="a_hover"><a href="#" onclick="TabdivDisplay(1,5);return false;">
                    <img src="../../Images/sz01.png" />&nbsp;&nbsp;菜品设置</a></li>
                <li id="li2_2"><a href="#" onclick="TabdivDisplay(2,5);return false;">
                    <img src="../../Images/sz02.png" />&nbsp;&nbsp;原料设置</a></li>
                <li id="li2_3"><a href="#" onclick="TabdivDisplay(3,5);return false;">
                    <img src="../../Images/sz03.png" />&nbsp;&nbsp;类别设置</a></li>
                <li id="li2_4"><a href="#" onclick="TabdivDisplay(4,5);return false;">
                    <img src="../../Images/sz04.png" />&nbsp;&nbsp;菜谱设置</a></li>
                <li id="li2_5"><a href="#" onclick="TabdivDisplay(5,5);return false;">
                    <img src="../../Images/sz05.png" />&nbsp;&nbsp;我的食谱</a></li>
            </ul>
        </ul>
    </div>
    <div class="Center_Content" id="div2_1" style="display: none">
        <div class="Create_Recipe">
            <div class="left_CR">
                <div class="Recipe_0206" id="Dish">
                    <h1>
                        <a href="javascript:void(0);" onclick="show_list();">选择菜谱</a></h1>
                    <div id="Dl_div" class="Dl_div" style="height: 450px; overflow-y: scroll;">
                        <asp:TreeView ID="Tv_Dish" runat="server">
                            <SelectedNodeStyle BackColor="Yellow" BorderColor="Yellow" />
                        </asp:TreeView>
                    </div>
                    <table>
                        <tr>
                            <td>
                                <a href="#" class="add_botton" onclick="ClearPageInput_Dish()">
                                    <img src="../../Images/add.gif" /></a>
                            </td>
                            <td>
                                <a href="#" class="add_botton" onclick="Del_Select_Dish()">
                                    <img src="../../Images/delt_img.gif" /></a>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:TextBox ID="Txt_Dish_Seach" Columns="10" Width="100px" runat="server"></asp:TextBox>
                                <input type="button" id="But_Dish_Seach" value="搜索" />
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="Recipe_0206" id="RawMaterial" style="height: 450px; overflow-y: scroll;">
                    <h2>
                        原料</h2>
                    <div class="Recipe_0206" style="overflow: auto">
                        <asp:TreeView ID="Tv_RawMaterial" runat="server" OnSelectedNodeChanged="Tv_RawMaterial_SelectedNodeChanged">
                            <SelectedNodeStyle BackColor="Yellow" BorderColor="Yellow" />
                        </asp:TreeView>
                    </div>
                </div>
            </div>
            <div class="Right_CR">
                <div class="div_0207 left_width400">
                    <table width="100%" background="../../Images/div_h1_bg.gif">
                        <tr background="../../Images/div_h1_bg.gif">
                            <td>
                                <h1>
                                    <img src="../../Images/cp_h1_01.gif" />菜品信息</h1>
                            </td>
                            <td background="../../Images/div_h1_bg.gif">
                                <asp:ImageButton ID="bt_zengjia" ImageUrl="../../Images/save.gif" runat="server"
                                    Text="保存" OnClick="bt_zengjia_Click" />
                            </td>
                        </tr>
                    </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="td_padding_01">
                        <tr>
                            <td class="width155">
                                &nbsp;菜品名称：
                            </td>
                            <td>
                                <asp:TextBox ID="Txt_caiming" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                菜品分类
                            </td>
                            <td>
                                <asp:DropDownList ID="Dr_library" runat="server" OnSelectedIndexChanged="Dr_library_SelectedIndexChanged">
                                </asp:DropDownList>
                                <asp:DropDownList ID="Dr_DishType" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="width155">
                                &nbsp;特 点：
                            </td>
                            <td>
                                <asp:TextBox ID="Txt_tedian" runat="server" Height="56px" Width="166px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" class="width155">
                                &nbsp;做 法：
                            </td>
                            <td>
                                <asp:TextBox ID="Txt_zuofa" runat="server" Height="56px" Width="166px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" class="width155">
                                &nbsp;备注：
                            </td>
                            <td>
                                <asp:TextBox ID="TxtBack" runat="server" Height="56px" Width="166px"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                    <div class="img_touxiang">
                        <span>
                            <asp:Image ID="ImgUpPoto" runat="server" />
                            <%-- <img src="../../Images/Gnome-Face.png" />--%></span> <a href="#" onclick="UpPoto_Click()">
                                重设图片</a>
                    </div>
                </div>
                <div class="div_0207 right_width">
                    <h1>
                        <img src="../../Images/cp_h1_02.gif" />营养素信息</h1>
                    <dl>
                        <dt>主要膳食营养素含量</dt>
                        <dd style="width: 350px">
                            <table align="center">
                                <tr>
                                    <td align="right">
                                        热量：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_reliang" runat="server" Text="Label"></asp:Label>
                                        千卡(kcal)
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        蛋白质：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_danbaizhi" runat="server" Text="Label"></asp:Label>
                                        克(g)
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        脂肪：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_zhifang" runat="server" Text="Label"></asp:Label>
                                        千卡(kcal)
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        碳水化合物：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_tanshuihuahewu" runat="server" Text="Label"></asp:Label>
                                        克(g)
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        膳食纤维：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_shanshixianwei" runat="server" Text="Label"></asp:Label>
                                        千卡(kcal)
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </dd>
                    </dl>
                    <dl>
                        <dt>维生素</dt>
                        <dd style="width: 350px">
                            <table align="center">
                                <tr>
                                    <td align="right">
                                        维生素A：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_weishengsuA" runat="server" Text="Label"></asp:Label>
                                        微克(ug)
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        维生素B1：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_weishengsuB1" runat="server" Text="Label"></asp:Label>
                                        毫克(mg)
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        维生素B2：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_weishengsuB2" runat="server" Text="Label"></asp:Label>
                                        毫克(mg)
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        维生素C：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_weishengsuC" runat="server" Text="Label"></asp:Label>
                                        毫克(mg)
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        维生素E：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_weishengsuE" runat="server" Text="Label"></asp:Label>
                                        毫克(mg)
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        视黄醇当量：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_shihuangchundangliang" runat="server" Text="Label"></asp:Label>
                                        微克(ug)
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        尼克酸：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_nikesuan" runat="server" Text="Label"></asp:Label>
                                        毫克(mg)
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        胡萝卜素：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_huluobosu" runat="server" Text="Label"></asp:Label>
                                        毫克(mg)
                                    </td>
                                </tr>
                            </table>
                        </dd>
                    </dl>
                    <dl>
                        <dt>矿物质含量(毫克(mg))</dt>
                        <dd style="width: 350px">
                            <table align="center">
                                <tr>
                                    <td align="right">
                                        钙：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_gai" runat="server" Text="Label"></asp:Label>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        磷：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_ling" runat="server" Text="Label"></asp:Label>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        钾：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_jia" runat="server" Text="Label"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        钠：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_na" runat="server" Text="Label"></asp:Label>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        镁：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_mei" runat="server" Text="Label"></asp:Label>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        铁：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_tie" runat="server" Text="Label"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        锌：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_xin" runat="server" Text="Label"></asp:Label>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        硒：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_xi" runat="server" Text="Label"></asp:Label>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        铜：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_tong" runat="server" Text="Label"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        锰：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_men" runat="server" Text="Label"></asp:Label>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        碘：
                                    </td>
                                    <td>
                                        <asp:Label ID="lbl_dian" runat="server" Text="Label"></asp:Label>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </dd>
                    </dl>
                </div>
                <div class="div_0207 left_width400" style="height: 200px; overflow: auto;">
                    <h1>
                        <img src="../../Images/cp_h1_03.gif" />菜品原料信息</h1>
                    <a href="#" class="add_new" onclick="aa();">新增</a>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="swxx_table">
                        <tr>
                            <td style="width: 50px">
                                序号
                            </td>
                            <td style="width: 135px">
                                原料名称
                            </td>
                            <td style="width: 65px">
                                种类
                            </td>
                            <td style="width: 65px">
                                净用量
                            </td>
                            <td style="width: 65px">
                                热量
                            </td>
                            <td>
                                删除
                            </td>
                        </tr>
                        <tbody id="New_Raw_Row">
                            <%= Session["strTableHtml"] %>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="Center_Content" id="div2_2" style="display: none">
        <div class="Create_Recipe">
            <div class="left_CR">
                <div class="Recipe_0206">
                    <h1>
                        我的原料列表</h1>
                    <div id="Div_RawMaterial" style="height: 450px; overflow-y: scroll;">
                        <asp:TreeView ID="Tv_RawMaterial2" runat="server" ExpandDepth="1">
                            <SelectedNodeStyle BackColor="Yellow" BorderColor="Yellow" />
                        </asp:TreeView>
                    </div>
                </div>
                <table>
                    <tr>
                        <td>
                            <a href="#" class="add_botton" onclick="ClearPageInput_Raw()">
                                <img src="../../Images/add.gif" /></a>
                        </td>
                        <td>
                            <a href="#" class="add_botton" onclick="Del_Select_Dish()">
                                <img src="../../Images/delt_img.gif" /></a>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <input type="text" id="Txt_seach_Raw" style="width: 100px" />
                            <input type="button" id="but_Raw_seach" value="搜索" />
                        </td>
                    </tr>
                </table>
            </div>
            <div class="Right_CR">
                <div class="div_0207 left_width400">
                    <h1>
                        <img src="../../Images/cp_h1_01.gif" />原料信息
                        <asp:Button ID="But_Raw" runat="server" OnClick="But_Raw_Click" Text="Button" />
                    </h1>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="td_padding_01">
                        <tr>
                            <td class="width155">
                                原料名称：
                            </td>
                            <td>
                                <asp:TextBox ID="txtShiWumc" runat="server" CssClass="input_topleft"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="width155">
                                种属：
                            </td>
                            <td>
                                <asp:DropDownList ID="DDLzhongsu" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DDLzhongsu_SelectedIndexChanged">
                                </asp:DropDownList>
                                <asp:DropDownList ID="DDLzhongsumin" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" class="width155">
                                单价：
                            </td>
                            <td>
                                <asp:TextBox ID="txtDanJia" runat="server" CssClass="input_topleft"></asp:TextBox>
                            </td>
                        </tr>
                        <%-- <tr>
	  	<td valign="top" class="width155">单位：</td>
	  <td>
       <asp:DropDownList ID="DDLDanWei" runat="server" >
            </asp:DropDownList>
&nbsp;</td>
	  </tr>--%>
                        <tr>
                            <td valign="top" class="width155">
                                食部：
                            </td>
                            <td>
                                <asp:DropDownList ID="DDLShiBu" runat="server">
                                </asp:DropDownList>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" class="width155">
                                水分：
                            </td>
                            <td>
                                <asp:DropDownList ID="DDLShuiFen" runat="server">
                                </asp:DropDownList>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" class="width155">
                                折损率：
                            </td>
                            <td>
                                <asp:TextBox ID="txtzhesun" runat="server" CssClass="input_topleft"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" class="width155">
                                功用：
                            </td>
                            <td>
                                <asp:TextBox ID="txtGongYong" runat="server" CssClass="input_topleft" Style="height: 100px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" class="width155">
                                规格：
                            </td>
                            <td>
                                <table>
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="txtGuiGe" runat="server" Style="width: 30px" CssClass="input_topleft"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="DropDownList5" runat="server">
                                            </asp:DropDownList>
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:TextBox ID="TextBox6" runat="server" Style="width: 30px" CssClass="input_topleft"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="DropDownList7" runat="server">
                                            </asp:DropDownList>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="TextBox5" runat="server" Style="width: 30px" CssClass="input_topleft"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="DropDownList6" runat="server">
                                            </asp:DropDownList>
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:TextBox ID="TextBox7" runat="server" Style="width: 30px" CssClass="input_topleft"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="DropDownList8" runat="server">
                                            </asp:DropDownList>
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    <div class="img_touxiang">
                        <span>
                            <%--<img src="../../Images/Gnome-Face.png" />--%>
                        </span><a href="#" onclick=" Up_Raw_Poto_Click()"></a>
                    </div>
                </div>
                <div class="div_0207 right_width">
                    <h1>
                        <img src="../../Images/cp_h1_02.gif" />营养素信息</h1>
                    <dl>
                        <dt>主要膳食营养素含量</dt>
                        <dd style="width: 350px">
                            <table align="center">
                                <tr>
                                    <td align="right">
                                        热量：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_reliang" runat="server" CssClass="yys_input"></asp:TextBox>
                                        千卡(kcal)
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        蛋白质：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_danbaizhi" runat="server" CssClass="yys_input"></asp:TextBox>
                                        克(g)
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        脂肪：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_zhifang" runat="server" CssClass="yys_input"></asp:TextBox>
                                        千卡(kcal)
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        碳水化合物：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_huahewu" runat="server" CssClass="yys_input"></asp:TextBox>
                                        克(g)
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        膳食纤维：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_xianwei" runat="server" CssClass="yys_input"></asp:TextBox>
                                        千卡(kcal)
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </dd>
                    </dl>
                    <dl>
                        <dt>维生素</dt>
                        <dd style="width: 350px">
                            <table align="center">
                                <tr>
                                    <td align="right">
                                        维生素A：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_Va" runat="server" CssClass="yys_input"></asp:TextBox>
                                        微克(ug)
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        维生素B1：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_Vb1" runat="server" CssClass="yys_input"></asp:TextBox>
                                        毫克(mg)
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        维生素B2：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_Vb2" runat="server" CssClass="yys_input"></asp:TextBox>
                                        毫克(mg)
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        维生素C：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_Vc" runat="server" CssClass="yys_input"></asp:TextBox>
                                        毫克(mg)
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        维生素E：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_Ve" runat="server" CssClass="yys_input"></asp:TextBox>
                                        毫克(mg)
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        视黄醇当量：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_dangliang" runat="server" CssClass="yys_input"></asp:TextBox>
                                        微克(ug)
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        尼克酸：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_nikesuan" runat="server" CssClass="yys_input"></asp:TextBox>
                                        毫克(mg)
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        胡萝卜素：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_luobu" runat="server" CssClass="yys_input"></asp:TextBox>
                                        毫克(mg)
                                    </td>
                                </tr>
                            </table>
                        </dd>
                    </dl>
                    <dl>
                        <dt>矿物质含量(毫克(mg))</dt>
                        <dd style="width: 350px">
                            <table align="center">
                                <tr>
                                    <td align="right">
                                        钙：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_gai" runat="server" CssClass="yys_input"></asp:TextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        磷：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_lin" runat="server" CssClass="yys_input"></asp:TextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        钾：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_jia" runat="server" CssClass="yys_input"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        钠：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_na" runat="server" CssClass="yys_input"></asp:TextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        镁：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_mei" runat="server" CssClass="yys_input"></asp:TextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        铁：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_tie" runat="server" CssClass="yys_input"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        锌：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_xin" runat="server" CssClass="yys_input"></asp:TextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        硒：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_xi" runat="server" CssClass="yys_input"></asp:TextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        铜：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_tong" runat="server" CssClass="yys_input"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        锰：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_meng" runat="server" CssClass="yys_input"></asp:TextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        碘：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_dian" runat="server" CssClass="yys_input"></asp:TextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </dd>
                    </dl>
                </div>
            </div>
        </div>
    </div>
    <div class="Center_Content" id="div2_3" style="display: none; height: 500px">
        <table align="center">
            <tr>
                <td>
                    <div class="div_0207 left_width400" style="height: 200px">
                        <h1>
                            <img src="../../Images/cp_h1_03.gif" />原料类别
                            <input type="button" onclick="add_raw_type()" value="新增" />
                            <input type="button" onclick="add_raw_Type_Info()" value="原料保存" />
                        </h1>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="swxx_table">
                            <thead>
                                <tr>
                                    <td style="width: 50px">
                                        序号
                                    </td>
                                    <td style="width: 250px">
                                        原料类别
                                    </td>
                                    <td>
                                        编辑细类
                                    </td>
                                    <td>
                                        删除
                                    </td>
                                </tr>
                            </thead>
                            <tbody id="raw_types">
                            </tbody>
                            <tbody id="raw_type">
                                <%= ViewState["strRawHtml"].ToString() %>
                            </tbody>
                        </table>
                    </div>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <div class="div_0207 left_width400" style="height: 200px">
                        <h1>
                            <img src="../../Images/cp_h1_03.gif" />菜品类别</h1>
                        <input type="button" onclick="add_Dish_type()" value="新增" />
                        <input type="button" onclick="add_Dish_Type_Info()" value="菜品保存" />
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="swxx_table">
                            <thead>
                                <tr>
                                    <td style="width: 50px">
                                        序号
                                    </td>
                                    <td style="width: 250px">
                                        菜品类别
                                    </td>
                                    <td>
                                        删除
                                    </td>
                                </tr>
                            </thead>
                            <tbody id="Dish_Type">
                                <%= ViewState["strDishHtml"].ToString()%>
                            </tbody>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div class="Center_Content" id="div2_4" style="display:none ">
        <div class="div_0207 left_width400" style="height: 500px; width: 100%">
            <h1>
                <img src="../../Images/cp_h1_03.gif" />菜谱库</h1>
            <a href="#" class="add_innsert" onclick="add_set_Libery()">保存</a> <a href="#" class="add_new"
                onclick="select_libery()">新增</a>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="swxx_table">
                <thead>
                    <tr>
                        <td style="width: 50px">
                            序号
                        </td>
                        <td style="width: 250px">
                            菜谱库名称
                        </td>
                        <td style="width: 100px">
                            适用人群
                        </td>
                        <td style="width: 550px">
                            描述
                        </td>
                        <td style="width: 30px">
                            删除
                        </td>
                    </tr>
                </thead>
                <tbody id="libery_List">
                    <%= ViewState["strTable"]  %>
                </tbody>
            </table>
        </div>
    </div>
    <div class="Center_Content" id="div2_5" style="display: block; height: 500px">
            <div class="div_0207 left_width500" style="height: 500px; width: 100%">
                <h1>
                    <img src="../../Images/cp_h1_03.gif" />查询我的食谱</h1>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="swxx_table">
                    <thead>
                         <tr>
							<td>
                                作业区：
                                  <asp:DropDownList ID="Dr_Operaction" runat="server" 
                                        CssClass="buttonPopupDiv179" AutoPostBack="True" 
                                        onselectedindexchanged="Dr_Operaction_SelectedIndexChanged">
                                    </asp:DropDownList>
                            </td>
                            <td>
                                班组：
                                <asp:DropDownList ID="Dr_Class" runat="server" CssClass="buttonPopupDiv179"> </asp:DropDownList>
                            </td>
                            <td>
                                选择年：
                                
                                <asp:DropDownList ID="dr_year" CssClass="buttonPopupDiv82" runat="server">
                                <asp:ListItem Value="0" Text="选择年份"></asp:ListItem>
                                <asp:ListItem Value="1999" Text="1999"></asp:ListItem>
                                <asp:ListItem Value="2000" Text="2000"></asp:ListItem>
                                <asp:ListItem Value="2001" Text="2001"></asp:ListItem>
                                <asp:ListItem Value="2002" Text="2002"></asp:ListItem>
                                <asp:ListItem Value="2003" Text="2003"></asp:ListItem>
                                <asp:ListItem Value="2004" Text="2004"></asp:ListItem>
                                <asp:ListItem Value="2005" Text="2005"></asp:ListItem>
                                <asp:ListItem Value="2006" Text="2006"></asp:ListItem>
                                <asp:ListItem Value="2007" Text="2007"></asp:ListItem>
                                <asp:ListItem Value="2008" Text="2008"></asp:ListItem>
                                <asp:ListItem Value="2009" Text="2009"></asp:ListItem>
                                <asp:ListItem Value="2010" Text="2010"></asp:ListItem>
                                <asp:ListItem Value="2011" Text="2011"></asp:ListItem>
                                <asp:ListItem Value="2012" Text="2012"></asp:ListItem>
                                <asp:ListItem Value="2013" Text="2013"></asp:ListItem>
                                <asp:ListItem Value="2014" Text="2014"></asp:ListItem>
                                <asp:ListItem Value="2015" Text="2015"></asp:ListItem>
                                <asp:ListItem Value="2016" Text="2016"></asp:ListItem>
                                <asp:ListItem Value="2017" Text="2017"></asp:ListItem>
                                <asp:ListItem Value="2018" Text="2018"></asp:ListItem>
                                <asp:ListItem Value="2019" Text="2019"></asp:ListItem>

                                </asp:DropDownList>
                            </td>
                            <td>
                                选择月： 
                                        <asp:DropDownList ID="dr_Moth" runat="server" >
                                        <asp:ListItem Value="1" Text="1"></asp:ListItem>
                                        <asp:ListItem Value="2" Text="2"></asp:ListItem>
                                        <asp:ListItem Value="3" Text="3"></asp:ListItem>
                                        <asp:ListItem Value="4" Text="4"></asp:ListItem>
                                        <asp:ListItem Value="5" Text="5"></asp:ListItem>
                                        <asp:ListItem Value="6" Text="6"></asp:ListItem>
                                        <asp:ListItem Value="7" Text="7"></asp:ListItem>
                                        <asp:ListItem Value="8" Text="8"></asp:ListItem>
                                        <asp:ListItem Value="9" Text="9"></asp:ListItem>
                                        <asp:ListItem Value="10" Text="10"></asp:ListItem>
                                        <asp:ListItem Value="11" Text="11"></asp:ListItem>
                                        <asp:ListItem Value="12" Text="12"></asp:ListItem> 
                                    </asp:DropDownList>
                            </td>
                            <td>
                            <asp:Button runat="server" ID="select_shipu" Text="查询" OnClick="select_sihpu_click" />
                                
                            </td>
                        </tr>
                    </thead>
                    <tbody>
                        <td colspan="4">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="swxx_table">
                                <thead>
                                    <tr>
                                        <td style="width: 50px">
                                            序号
                                        </td>
                                        <td style="width: 200px">
                                            名称
                                        </td>
                                        <td style="width: 80px">
                                            食谱周期
                                        </td>
                                        <td style="width: 130px">
                                            创建时间
                                        </td>
                                        <td style="width: 65px">
                                            平均年龄
                                        </td>
                                        <td style="width: 30px">
                                            查询
                                        </td>
                                        <td style="width: 30px">
                                            删除
                                        </td>
                                    </tr>
                                </thead>
                                <tbody>
                                 <%=ViewState["showshipulist"] %>  
                                </tbody>
                             
                            </table>
                        </td>
                    </tbody>
                </table>
            </div>
        </div>

    <div id="Div_DataList_Library" style="display: none">
        <asp:DataList ID="DataList_Library" runat="server">
            <ItemTemplate>
                <table style="width: 100%;">
                    <tr onclick="Library(<%# Eval("id")%>)">
                        <td>
                            <%# Eval("LName")%>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList>
    </div>
    <div id="UpPoto_Dish">
        <dl class="pop_dl" id="pol_search" style="width: 460px;">
            <dt><span>关闭</span></dt>
            <dd style="padding: 0px;">
                <table border="0" width="450px" style="background-color: White; color: Black;" cellpadding="1"
                    cellspacing="1">
                    <tr style="background-color: White;">
                        <td style="width: 80px; text-align: right;">
                            <asp:Label ID="Label4" runat="server" Text="文件上传" Font-Size="11pt" Font-Bold="False"
                                Font-Names="宋体" ForeColor="Black"></asp:Label>
                        </td>
                        <td style="width: 120px">
                            <asp:FileUpload ID="File_Upload" runat="server" />
                        </td>
                        <td style="width: 80px; text-align: right;">
                            <asp:Button ID="ButOk" runat="server" OnClick="butUpClose_Click" Text="确定" />
                        </td>
                    </tr>
                </table>
            </dd>
        </dl>
        <div id="popbg">
        </div>
    </div>
    <div id="UpPoto_Raw">
        <dl class="pop_dl" id="Dl1" style="width: 460px;">
            <dt><span>关闭</span></dt>
            <dd style="padding: 0px;">
                <table border="0" width="450px" style="background-color: White; color: Black;" cellpadding="1"
                    cellspacing="1">
                    <tr style="background-color: White;">
                        <td style="width: 80px; text-align: right;">
                            <asp:Label ID="Label1" runat="server" Text="文件上传" Font-Size="11pt" Font-Bold="False"
                                Font-Names="宋体" ForeColor="Black"></asp:Label>
                        </td>
                        <td style="width: 120px">
                            <asp:FileUpload ID="Fu_Raw_Poto" runat="server" />
                        </td>
                        <td style="width: 80px; text-align: right;">
                            <asp:Button ID="but_Raw_Up" runat="server" OnClick="but_Raw_Close_Click" Text="确定" />
                        </td>
                    </tr>
                </table>
            </dd>
        </dl>
        <div id="Div2">
        </div>
    </div>
    <div class="footer">
        <strong>中海油能源发展配餐服务公司渤海自营油田作业公司ng>中海油能源发展配餐服务公司渤海自营油田作业公司</strong><span>版权所有@CopyRight
            2012</span>
    </div>
    <!--遮罩层-->
    <div id="divmain" class="bg">
    </div>
    <!--弹出层-->
    <div id="divup" class="center_div">
        <table>
            <tr>
                <td>
                    <div class="div_0207 left_width400" style="width: 100%">
                        <h1>
                            <img src="../../Images/cp_h1_03.gif" />菜品细类</h1>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="swxx_table">
                            <thead>
                                <tr>
                                    <td style="width: 50px">
                                        序号
                                    </td>
                                    <td style="width: 150px">
                                        细类名称
                                    </td>
                                    <td style="width: 250px">
                                        备注
                                    </td>
                                </tr>
                            </thead>
                            <tbody id="Myselect">
                            </tbody>
                        </table>
                    </div>
                </td>
            </tr>
            <tr align="center">
                <td align="center">
                    <div align="center" class="img_touxiang">
                        <table align="center">
                            <tr align="center">
                                <td align="center">
                                    <a href="#">确定</a>
                                </td>
                                <td align="center">
                                    <a href="#" onclick='divhidel("divmain","divup")'>关闭</a>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
